package com.huanong.controller;
/*
 *@Author:anran
 *@Date:2020/12/9
 *@Version 1.0
 */

import com.huanong.common.grace.result.GraceJSONResult;
import com.huanong.pojo.Order;
import com.huanong.pojo.vo.OrderVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@Api(value = "订单信息",tags = {"订单信息"})
@RequestMapping("/order")
@CrossOrigin("*")
public interface OrderControllerApi {

    @ApiOperation(value = "查询订单接口", notes = "查询订单", httpMethod = "GET")
    @GetMapping("/orderQuery")
    GraceJSONResult query() ;

    @ApiOperation(value = "根据id查询订单接口",notes = "根据id查询订单",httpMethod = "GET")
    @GetMapping("/orderQueryById")
    GraceJSONResult queryOrderById(@RequestParam("OsId") Integer OsId);

    @ApiOperation(value = "根据用户id查询订单接口",notes = "根据用户id查询订单接口",httpMethod = "GET")
    @GetMapping("/orderQueryByUserid")
    GraceJSONResult orderQueryByUserid(@RequestParam("psId") Integer psId);

    @ApiOperation(value = "新增订单信息接口",notes = "新增订单信息",httpMethod = "POST")
    @PostMapping("/addOrder")
    GraceJSONResult addOrder(@RequestBody OrderVo order);

    @ApiOperation(value = "删除订单信息接口",notes = "删除订单信息",httpMethod = "GET")
    @GetMapping("/deleteOrder")
    GraceJSONResult deleteOrder(@RequestParam("OsId") Integer OsId );

    @ApiOperation(value = "修改订单状态信息接口",notes = "修改订单状态信息接口",httpMethod = "POST")
    @PostMapping("/updataStatusOrder")
    GraceJSONResult updataStatusOrder(@RequestBody OrderVo order);
}
